package team.you.change.service;

import team.you.change.util.Result;
import team.you.change.pojo.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface LoginService {
    //用户注册
    Result register(User user);
    //查询用户名是否重复
    Result selUsername(String value);
    //查询工号是否存在
    Result selTeaNo(String papers);
    //验证码对错验证(手机和邮箱)
    Result codeVarify(String testCode, Integer type, HttpServletRequest request);
    //创建图形验证码，并保存在session中，将验证码返回给前端
    void getCode(HttpServletRequest request, HttpServletResponse response);
    //用户登录（是否记住密码）
    Result login(String remember, String username, String password, String code, HttpServletRequest request);
    //获取短信验证码
    Result mobileCode(String phone, HttpServletRequest request);
}
